<script setup lang="ts">
import { ref,onMounted } from "vue";
import CommonHeader from "@/components/video/CommonHeader.vue";
import SearchVideo from "@/components/video/SearchVideo.vue";
import router from "@/router";
import { useRoute } from 'vue-router'
const route = useRoute()
const searchTxt = ref("");
onMounted(() => {
  searchTxt.value = route.query.searchTxt;
})
</script>

<template>
  <div>
    <div class="common-layout">
      <el-container>
        <el-header>
          <CommonHeader/>
        </el-header>
        <el-main>
          <SearchVideo/>
        </el-main>
      </el-container>
    </div>
  </div>
</template>

<style scoped lang="less">
</style>
